package com.microservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableEurekaClient
@SpringBootApplication
@EnableScheduling 
public class ProviderUserApplication implements HealthIndicator{
	public static void main(String args[]) {
		SpringApplication.run(ProviderUserApplication.class, args);
	}

	@Override
	public Health health() {
		return Health.up().withDetail("hello", "world").build();  
	}
}
